package io.cici.server.persistence.remote.model.brief;


import lombok.Data;


@Data
public class BriefInstanceInfo {


    private Long appId;

    private Long id;
    /**
     * 任务ID
     */
    private Long taskId;
    /**
     * 任务所属应用的ID，冗余提高查询效率
     */
    private Long taskInstanceId;
    /**
     * 总共执行的次数（用于重试判断）
     */
    private Long runningTimes;


    public BriefInstanceInfo(Long appId, Long id, Long taskId, Long taskInstanceId) {
        this.appId = appId;
        this.id = id;
        this.taskId = taskId;
        this.taskInstanceId = taskInstanceId;
    }

}
